#include "structCell.hpp"
#include "structMesh.hpp"

namespace hms {


StructCell::StructCell( const StructMesh& mesh, Index index ) :
	StructCellBase( mesh, index )
{}

StructCell::StructCell( const StructMesh& mesh, Index x, Index y ) :
	StructCellBase( mesh, x, y )
{}



auto StructCell::areaImp    () const -> scalar {
	return m_mesh.cells().area(m_index);
}

auto StructCell::circumfImp () const -> scalar {
	return m_mesh.cells().circumf(m_index);
}

auto StructCell::centroidImp() const -> CentroidType {
	return m_mesh.cells().centroid(m_index);
}

}